package car;

import java.util.Random;

/**
 * Created by 逸足天涯
 * Date: 2019/10/17.
 * Time: 16:04
 */
public abstract class BasicCar implements Cloneable{
    public String modleName;
    public int price;

    public String getModleName() {
        return modleName;
    }

    public void setModleName(String modleName) {
        this.modleName = modleName;
    }
    public static int setPrice() {
        int price = 0;
        Random r =  new Random();
        int p = r.nextInt(100000);
        price = p ;
        return price;
    }

    public BasicCar clone() throws CloneNotSupportedException{
        return (BasicCar) super.clone();

    }
}
